package com.heima.wemedia.controller.v1;

import com.heima.wemedia.service.WmNewsAutoScanService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/")
@Slf4j
public class testController {

    @Autowired
    private WmNewsAutoScanService wmNewsAutoScanService;

    @GetMapping("test/{id}")
    public void testAutoScan(@PathVariable Integer id) {
        wmNewsAutoScanService.autoScanWmNews(id);
    }
}
